<template>
  <div class="app-container">
    <el-select v-model="value" placeholder="请选择">
    <el-option
      v-for="item in options"
      :key="item.value"
      :label="item.label"
      :value="item.value">
    </el-option>
  </el-select>
  <component :is="value"></component>

    <!-- <dailytable v-show="!isShowDailyTable" :dailyDataTable="dailyDataTable" /> -->
  </div>
</template>

<script>
  import DailyReport from '@/components/ReportComponents/DailyReport.vue';
  import WeekReport from '@/components/ReportComponents/WeekReport.vue';
  export default {
    name: "report",
    components:{
      DailyReport,
      WeekReport
    },
    data(){
      return{
        options:[
          {
            value:"WeekReport",
            label:'周报'
          },
          {
            value:"DailyReport",
            label:'日报'

          }
        ],
        value:'WeekReport'
      }
    }
  };
</script>
<style scoped>
</style>
